class Data {
    // 以`#`为前缀的属性是私有属性
    #content = 12345;
    // getter
    get content(){
        console.log('getter');
        return this.#content;
    }
    // setter
    set content(value) {
        console.log('setter');
        this.#content = value;
    }
}

const data = new Data();
console.log( data );

console.log( data.content );

data.content = '今晚打老虎';

console.log( data.content );